/*
 * This is a function to test floating-point conditions.
 */
double fmax(double x, double y)
{
	if (x > y)
		return x;
	return y;
}

float fmin(float x, float y)
{
	if (x >= y)
		return y;
	return x;
}

int feq(double x, double y)
{
	int r;
	if (x != y)
		r = 1;
	else
		r = 0;
	return r;
}